/**
 * 
 */
package hottargui.standard;

import hottargui.framework.Game;
import hottargui.framework.IllegalActionException;
import hottargui.framework.PlayerColor;
import hottargui.framework.Position;
import hottargui.framework.State;
import hottargui.framework.TarguiState;
import hottargui.framework.WinnerStrategy;

public class StandardEndGameState implements TarguiState {

	Game gameContext;

	public StandardEndGameState(Game game) {
		this.gameContext = game;
	}

	public boolean buy(int count, Position deploy) throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public State getState() {
		return State.endGame;
	}

	public PlayerColor getWinner() throws IllegalActionException {
		WinnerStrategy winner = gameContext.getGameObjectServer().getWinnerStrategy();
		return winner.getWinner(gameContext);
	}

	public boolean move(Position from, Position to, int count) throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public void newGame() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public void rollDie() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public PlayerColor turnCard() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public void yieldAttack() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}
	
	public void skip() throws IllegalActionException
	{
		throw new IllegalActionException(this.getState());
	}
}
